package sprinklerbee.views;

import javax.swing.JPanel;
import java.awt.GridLayout;

import javax.swing.border.TitledBorder;
import java.awt.SystemColor;

public class InfoPanel extends JPanel {

	SensorPanel sensorPanel = new SensorPanel();
	ManagePanel managePanel = new ManagePanel();
	// SchedulePanel schedulePanel = new SchedulePanel();

	public InfoPanel() {
		setBorder(new TitledBorder("System Infomation"));
		setBackground(SystemColor.menu);
		setLayout(null);
		GridLayout gridLayout = (GridLayout) managePanel.getLayout();
		gridLayout.setRows(0);
		gridLayout.setHgap(5);
		managePanel.setBackground(SystemColor.menu);
		
		add(managePanel);
		GridLayout gridLayout_1 = (GridLayout) sensorPanel.getLayout();
		gridLayout_1.setHgap(5);
		sensorPanel.setBackground(SystemColor.menu);
		add(sensorPanel);
	}
}
